package com.qingzhuge.exception;


import com.qingzhuge.common.HttpCode;

/**
 * @author : zero.xiao
 * @description : 请求参数出错
 * @modified :
 */
public class IllegalParameterException extends BaseException {
    private static final long serialVersionUID = -9121653527666076104L;

    public IllegalParameterException() {
        super(HttpCode.BAD_REQUEST.message());
    }

    public IllegalParameterException(Throwable ex) {
        super(ex);
    }

    public IllegalParameterException(String message) {
        super(message);
    }

    public IllegalParameterException(String message, Throwable ex) {
        super(message, ex);
    }

    @Override
    public int getCode() {
        return HttpCode.BAD_REQUEST.value();
    }
}
